package cn.edu.zhku.citrusmonitor.person.user.dao;

import java.sql.SQLException;
import java.util.List;

import cn.edu.zhku.citrusmonitor.domain.TbUser;

public interface UserDao {
	public void add(TbUser user) throws SQLException;//添加用户

	public TbUser getUserByPhone(String phone) throws SQLException;//获得手机号

	public TbUser getUserByPhoneAndPwd(String phone, String password) throws SQLException;

	public long getTotal() throws SQLException;

	public List<TbUser> getList(int currentPage, long pageSize) throws SQLException;

	//public String getUserIdByUser(TbUser user) throws SQLException;
	
	public int modify(TbUser user) throws SQLException;

	public int deleteUserById(String id) throws SQLException;

	public TbUser getUserById(String id) throws SQLException;

	public List<TbUser> getUserByLikePhone(String phone) throws SQLException;

	public int[] removeAllById(String[] ids) throws SQLException;
}
